package eureka.consumer.redissonlock;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author RenPu
 * @Date 2021/8/26 11:32
 * @Version 1.0
 * @Description: Redisson分布式参数配置类
 **/
@Data
@ConfigurationProperties(prefix = "spring.redis")
public class BaseRedisProperty {

    private String host;

    private Integer port;

    private Integer database;

    private Pool pool;

    private Redisson redisson;

    private String password;

    @Data
    public static class Pool {
        private Integer maxTotal;
        private Integer maxIdle;
        private Integer minIdle;
        private Long maxWaitMillis;
    }

    @Data
    public static class Redisson {
        private String mode;
        private Integer poolSize;
        private Integer minIdleSize;
        private Integer timeOut;
        private String transportMode;
    }


}
